﻿using System;

namespace TBM.Models
{
    public class User
    {
        public string UID { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 分组
        /// </summary>
        public string Groups { get; set; }
        /// <summary>
        /// 是否是中文名
        /// </summary>
        public bool CNName { get; set; }
        /// <summary>
        /// 姓
        /// </summary>
        public string FirstName { get; set; }
        /// <summary>
        /// 名
        /// </summary>
        public string LastName { get; set; }
        /// <summary>
        /// 用户头像
        /// </summary>
        public string PicUrl { get; set; }
        /// <summary>
        /// 电子信箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 通讯电话
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// QQ
        /// </summary>
        public string QQ { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime RegisterDate { get; set; }
        /// <summary>
        /// 用户状态
        /// </summary>
        public bool IsActive { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Memo { get; set; }
    }

    public class UserListItem : User
    {
        /// <summary>
        /// 是否被选中
        /// </summary>
        public bool Checked { get; set; }
        /// <summary>
        /// 全称
        /// </summary>
        public string FullName { get; set; }
    }
}